<template>
    <div>
        <TableCard>
            <el-table  :border="Global.tableShowBorder" :data="targetList" style="margin-top: 50px;" v-loading="loading">
                <el-table-column align="center"  key="realName" prop="realName" label="学生姓名"></el-table-column>
                <el-table-column align="center" v-for="(item, index) in pList" :key="index" :label="item.name">
                    <el-table-column align="center" v-for="(d, i) in item.itemList" :key="i" :prop="d.prop" :label="d.label"></el-table-column>
                </el-table-column>
            </el-table>
        </TableCard>
    </div>
</template>

<script>
import {calcStudentRadio} from "@/api/stu/score";



export default {
    props: {
        // scoreList: {
        //     type: Array,
        //     default: []
        // },
        // radioList: {
        //     type: Array,
        //     default: []
        // },
    },
    data() {
        return {
            // 遮罩层
            loading: true,
            pList:[],
            pointList:[],
            targetList:[]
        }
    },
    mounted() {
    },
    methods: {
        goLoading(){
            this.loading = true;
        }
        ,
        setListData(pList,pointList,targetList) {
            this.loading = false;

            this.pList = pList;

            this.pointList = pointList;
            console.log("pointList")
            console.log(this.pointList)
            this.targetList = targetList
            console.log("targetList")
            console.log(this.targetList)
        }
    }
}
</script>
